package com.zk.nacosprovider.Entity;

import java.io.Serializable;
import java.util.Date;

public class data implements Serializable {
    private String dataid;

    private String belongequipmentid;

    private Integer datatype;

    private String datavalue;

    private Date time;

    private Integer falsedeletion;

    private String datahtml;

    private static final long serialVersionUID = 1L;

    public String getDataid() {
        return dataid;
    }

    public void setDataid(String dataid) {
        this.dataid = dataid == null ? null : dataid.trim();
    }

    public String getBelongequipmentid() {
        return belongequipmentid;
    }

    public void setBelongequipmentid(String belongequipmentid) {
        this.belongequipmentid = belongequipmentid == null ? null : belongequipmentid.trim();
    }

    public Integer getDatatype() {
        return datatype;
    }

    public void setDatatype(Integer datatype) {
        this.datatype = datatype;
    }

    public String getDatavalue() {
        return datavalue;
    }

    public void setDatavalue(String datavalue) {
        this.datavalue = datavalue == null ? null : datavalue.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getFalsedeletion() {
        return falsedeletion;
    }

    public void setFalsedeletion(Integer falsedeletion) {
        this.falsedeletion = falsedeletion;
    }

    public String getDatahtml() {
        return datahtml;
    }

    public void setDatahtml(String datahtml) {
        this.datahtml = datahtml == null ? null : datahtml.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        data other = (data) that;
        return (this.getDataid() == null ? other.getDataid() == null : this.getDataid().equals(other.getDataid()))
            && (this.getBelongequipmentid() == null ? other.getBelongequipmentid() == null : this.getBelongequipmentid().equals(other.getBelongequipmentid()))
            && (this.getDatatype() == null ? other.getDatatype() == null : this.getDatatype().equals(other.getDatatype()))
            && (this.getDatavalue() == null ? other.getDatavalue() == null : this.getDatavalue().equals(other.getDatavalue()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getFalsedeletion() == null ? other.getFalsedeletion() == null : this.getFalsedeletion().equals(other.getFalsedeletion()))
            && (this.getDatahtml() == null ? other.getDatahtml() == null : this.getDatahtml().equals(other.getDatahtml()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDataid() == null) ? 0 : getDataid().hashCode());
        result = prime * result + ((getBelongequipmentid() == null) ? 0 : getBelongequipmentid().hashCode());
        result = prime * result + ((getDatatype() == null) ? 0 : getDatatype().hashCode());
        result = prime * result + ((getDatavalue() == null) ? 0 : getDatavalue().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getFalsedeletion() == null) ? 0 : getFalsedeletion().hashCode());
        result = prime * result + ((getDatahtml() == null) ? 0 : getDatahtml().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dataid=").append(dataid);
        sb.append(", belongequipmentid=").append(belongequipmentid);
        sb.append(", datatype=").append(datatype);
        sb.append(", datavalue=").append(datavalue);
        sb.append(", time=").append(time);
        sb.append(", falsedeletion=").append(falsedeletion);
        sb.append(", datahtml=").append(datahtml);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}